home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
hity wydania
/
trueSpace 7.6
/
tS761B8Std.exe
/
{app}
/
Scripts
/
MaterialEditor
/
Bricks
/
Texturing
/
tex2Dproj2.HLSL.Brick.xml
< prev
Wrap
Extensible Markup Language
|
2008-06-10
|
846b
|
13 lines
<?xml version="1.0" encoding="utf-8" ?>
<ME_BRICK GUID="{C0086BAD-667D-42dd-BEC6-AFBC8270B7EE}" Name="RtTex2DProj2" GUIName="Tex2D_Projection2" Description="Sample the 2D texture at given 4D texture coordinates with additional projective divide (in w) [tex2dproj]">
<ME_BRICK_INPUTPARAM GUID="{FCA1EAFD-08B1-47c0-8EAB-4018A208367E}" Name="Sampler2D" Type="RtSampler2D"/>
<ME_BRICK_INPUTPARAM GUID="{94E6F464-CB84-45dc-9331-7FF9A7912011}" Name="vTextureCoord" Type="RtFloat4"/>
<ME_BRICK_OUTPUTPARAM GUID="{FEA329F8-652C-4419-9E69-4B54B33089D3}" Name="Color" Type="RtFloat4"/>
<ME_BRICK_CODE><![CDATA[
void RtTex2DProj2(in RtSampler2D Sampler2D, in RtFloat4 vTextureCoord, out RtFloat4 Color)
{
Color = rtx_Tex2DProj(Sampler2D, vTextureCoord);
}
]]></ME_BRICK_CODE>
</ME_BRICK>